-- GENERATED SPELL FOR [Jadefire Betrayer] --


function spell0_7108(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7108', 611, 1)
end

function spell1_7108(pUnit, Event) --@Jadefire,Self--
pUnit:FullCastSpellOnTarget(13578,pUnit)
pUnit:RegisterEvent('Sorts_7108', 8320, 1)
end

function spell2_7108(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7108', 15000, 1)
end

function Sorts_7108(pUnit, Event)
local choix_sorts_7108 = math.random(0, 2)
if choix_sorts_7108 == 0 then
pUnit:RegisterEvent('spell0_7108', 1, 1)
end
if choix_sorts_7108 == 1 then
pUnit:RegisterEvent('spell1_7108', 1, 1)
end
if choix_sorts_7108 == 2 then
pUnit:RegisterEvent('spell2_7108', 1, 1)
end
end

function mob7108_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7108', math.random(1500, 3000), 1)
end

function mob7108_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7108_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7108_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7108, 1, 'mob7108_Action')
RegisterUnitEvent(7108, 2, 'mob7108_Leave')
RegisterUnitEvent(7108, 3, 'mob7108_Kill')
RegisterUnitEvent(7108, 4, 'mob7108_Die')
